home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / comm1 / s342q12.lha / xproto.h < prev    next >
C/C++ Source or Header  |  1995-04-09  |  3KB  |  93 lines

  1. /** xproto.h
  2. *
  3. *   Include file for External Protocol Handling
  4. *
  5. **/
  6. /*
  7. *   The structure
  8. */
  9. struct XPR_IO {
  10.                   char  *xpr_filename;      /* File name(s)             */
  11.                   long  *xpr_data;          /* Initialized by Setup.    */
  12.               };
  13. /*
  14. *   Number of defined extensions
  15. */
  16. #define XPR_EXTENSION 4L
  17.  
  18. /*
  19. *   Flags returned by XProtocolSetup()
  20. */
  21. #define XPRS_FAILURE    0x00000000L
  22. #define XPRS_SUCCESS    0x00000001L
  23. #define XPRS_NORECREQ   0x00000002L
  24. #define XPRS_NOSNDREQ   0x00000004L
  25. #define XPRS_HOSTMON    0x00000008L
  26. #define XPRS_USERMON    0x00000010L
  27. #define XPRS_HOSTNOWAIT 0x00000020L
  28. /*
  29. *   The update structure
  30. */
  31. struct XPR_UPDATE {     long  xpru_updatemask;
  32.                         char *xpru_protocol;
  33.                         char *xpru_filename;
  34.                         long  xpru_filesize;
  35.                         char *xpru_msg;
  36.                         char *xpru_errormsg;
  37.                         long  xpru_blocks;
  38.                         long  xpru_blocksize;
  39.                         long  xpru_bytes;
  40.                         long  xpru_errors;
  41.                         long  xpru_timeouts;
  42.                         long  xpru_packettype;
  43.                         long  xpru_packetdelay;
  44.                         long  xpru_chardelay;
  45.                         char *xpru_blockcheck;
  46.                         char *xpru_expecttime;
  47.                         char *xpru_elapsedtime;
  48.                         long  xpru_datarate;
  49.                         long  xpru_reserved1;
  50.                         long  xpru_reserved2;
  51.                         long  xpru_reserved3;
  52.                         long  xpru_reserved4;
  53.                         long  xpru_reserved5;
  54.                    };
  55. /*
  56. *   The possible bit values for the xpru_updatemask are:
  57. */
  58. #define XPRU_PROTOCOL           0x00000001L
  59. #define XPRU_FILENAME           0x00000002L
  60. #define XPRU_FILESIZE           0x00000004L
  61. #define XPRU_MSG                0x00000008L
  62. #define XPRU_ERRORMSG           0x00000010L
  63. #define XPRU_BLOCKS             0x00000020L
  64. #define XPRU_BLOCKSIZE          0x00000040L
  65. #define XPRU_BYTES              0x00000080L
  66. #define XPRU_ERRORS             0x00000100L
  67. #define XPRU_TIMEOUTS           0x00000200L
  68. #define XPRU_PACKETTYPE         0x00000400L
  69. #define XPRU_PACKETDELAY        0x00000800L
  70. #define XPRU_CHARDELAY          0x00001000L
  71. #define XPRU_BLOCKCHECK         0x00002000L
  72. #define XPRU_EXPECTTIME         0x00004000L
  73. #define XPRU_ELAPSEDTIME        0x00008000L
  74. #define XPRU_DATARATE           0x00010000L
  75. /*
  76. *   The xpro_option structure
  77. */
  78. struct xpr_option {
  79.    char *xpro_description;      /* description of the option                  */
  80.    long  xpro_type;             /* type of option                             */
  81.    char *xpro_value;            /* pointer to a buffer with the current value */
  82.    long  xpro_length;           /* buffer size                                */
  83. };
  84. /*
  85. *   Valid values for xpro_type are:
  86. */
  87. #define XPRO_BOOLEAN 1L         /* xpro_value is "yes", "no", "on" or "off"   */
  88. #define XPRO_LONG    2L         /* xpro_value is string representing a number */
  89. #define XPRO_STRING  3L         /* xpro_value is a string                     */
  90. #define XPRO_HEADER  4L         /* xpro_value is ignored                      */
  91. #define XPRO_COMMAND 5L         /* xpro_value is ignored                      */
  92. #define XPRO_COMMPAR 6L         /* xpro_value contains command parameters     */
  93.